package ch07_GUI编程;

import javax.swing.*;
import java.awt.*;

public class Test {
	public static void main(String[] args) {
		BaseFrame f =new BaseFrame("Test");
		f.setLayout(new GridLayout(2,2,5,5));
		ImageIcon i = new ImageIcon("java.jpg");
		JLabel jl=new JLabel(i);
		
		jl.setBackground(Color.white);
		f.add(jl);
		f.showMe();
	}
}
